package top.eggcode.security.shiro;


/**
 * Title: 授权工具
 * Description: TODO
 * Date: 2021/4/14 21:59
 *
 * @author JiaQi Ding
 * @version 1.0
 */
public class AuthTool {

    /**
     * 获取角色标识
     *
     * @param roleList 角色码列表
     * @return 标识列表
     */
/*    public static Set<String> getRoleCodes(List<RoleEntity> roleList) {
        Set<String> roleCodeList = new HashSet<>();
        roleList.forEach(role -> roleCodeList.add(role.getCode()));
        return roleCodeList;
    }*/

    /**
     * 获取操作码
     *
     * @param powerList 操作码列表
     * @return 标识列表
     */
/*    public static Set<String> getPowerList(List<PowerEntity> powerList) {
        Set<String> operationCodeList = new HashSet<>();

        powerList.forEach(power -> operationCodeList.add(power.getCode()));
        return operationCodeList;
    }*/

}
